<template>
  <div class="big_box">
    <div class="_img">
      <img src="../../../static/user_images/OIP-C.jpg" alt="">
    </div>
    <div class="textMessage">
      <div class="name">{{user.user_name}}</div>
      <div class="hobby">爱好：{{user.user_hobby}}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    user:{
      type:Object,
      required:true
    }
  }
}
</script>

<style lang="less" scoped>

.big_box{
  display: flex;
  flex-direction: row;
  width: 100%;
  border-bottom: 1px solid black;
  padding: 10px;
  ._img{
    width: 80px;
    height: 80px;
    // margin:0 auto;
    img{
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .textMessage{
      margin-left:30px;
    div{
      text-align: left;
      margin:10px auto;
    }
  }
}
</style>